package com.dondedesigns.eh.controller.management;

import java.util.List;

import com.dondedesigns.eh.persistence.User;
import com.dondedesigns.eh.persistence.dao.UserDAO;
import com.opensymphony.xwork2.ActionSupport;

public class ManageMembersPage extends ActionSupport {
	
	private UserDAO userDAO;
	
	@Override
	public String execute() throws Exception {
		return SUCCESS;
	}
	
	public List<User> getActiveUsersList() {
		return userDAO.selectActiveUsers();
	}
	
	public List<User> getBannedUsersList() {
		return userDAO.selectBannedUsers();
	}
	
	public List<User> getUnauthorizedUsersList() {
		return userDAO.selectUnauthorizedUsers();
	}
	
	public void setUserDAO(UserDAO userDAO) {
		this.userDAO = userDAO;
	}
	
}
